package com.company.sendemo.basics.zzInterview.write.DemoFive;

/**
 * 节点类
 * @author javadaodechengxuyuan
 *
 */
public class Node {
    private long value;
    private Node leftNode;//节点下面的左节点
    private Node RightNode;//节点下面的右节点

    //构造器
    public Node(long value){
        this.value=value;
    }

    public long getValue() {
        return value;
    }
    public void setValue(long value) {
        this.value = value;
    }
    public Node getLeftNode() {
        return leftNode;
    }
    public void setLeftNode(Node leftNode) {
        this.leftNode = leftNode;
    }
    public Node getRightNode() {
        return RightNode;
    }
    public void setRightNode(Node rightNode) {
        RightNode = rightNode;
    }
}